<?php

App::uses('AppController', 'Controller');
include_once('ControlController.php');
use logsDao\logsDao;
use servidorDao\servidorDao;

class ServidorController extends ControlController {


	public $name = 'Servidor';
	
	var $logsDao;
	var $servidorDao;
	
	function beforeFilter(){
		parent::beforeFilter();
		$this->logsDao = new logsDao;
		$this->servidorDao = new servidorDao();
	}

	public function index() {
		print_r($this->servidorDao->getAllBbdd());
		$this->layout = 'ajax';
	}

}
